<template>
  <h2>props</h2>
  <Child name="zhangmou" @fn="fn" />
</template>

<script>
import Child from "../components/07-child.vue";

export default {
  //todo components是不能写到setup里面的
  //todo props是不能写到setup里面的
  components: {
    Child,
  },

  setup() {
    const fn = () => {
      console.log("fn");
    };
    return { fn };
  },
};
</script>
